/*
 * s_common_loopClock.h
 *
 *  Created on: Sep 27, 2020
 *      Author: hemingway
 */

#ifndef USER_COMMON_S_COMMON_LOOPCLOCK_H_
#define USER_COMMON_S_COMMON_LOOPCLOCK_H_

#include "s_common.h"

typedef enum
{
    s_common_loopClock_default_type = 0,
}s_common_loopClock_type;

extern s_common_state s_common_loopClock_init(void);
extern s_common_state s_common_loopClock_specialEvt_add(s_common_loopClock_type clockType, \
                                                        void *callBack, unsigned int loopnum);
extern s_common_state s_common_loopClock_specialEvt_del(s_common_loopClock_type clockType);
extern s_common_state s_common_loopClock_specialEvt_start(s_common_loopClock_type clockType);
extern s_common_state s_common_loopClock_specialEvt_stop(s_common_loopClock_type clockType);
extern s_common_state s_common_loopClock_specialEvt_edit_time(s_common_loopClock_type clockType, unsigned int loopnum);
extern void s_common_loopClock_handle(void);

#endif /* USER_COMMON_S_COMMON_LOOPCLOCK_H_ */
